<?php

/**
 * Description of feature
 *
 * @author libaoling
 * @time 2014-12-1
 */
class FeaturesModel extends BaseModel
{
    
    public $table  = 'features';
    public $prikey = 'goods_id';
    public $alias  = 'fg';
    public $_name  = 'features';
    
    public $_relation  = array(
        // 一个特色商品对应一条商品记录
        'has_goods' => array(
            'model'         => 'goods',
            'type'          => HAS_ONE,
            'foreign_key'   => 'goods_id',
        ),
    );
    
}
